<?php

namespace Rebecca\RebeccaBundle\Component;

require_once "ComponentBase.php";

/**
 * Description of TestComponent
 *
 * @author JeyDotC
 */
class MemorandosComponent extends ComponentBase {
    
    function getByContrato($id) {
        $entities = $this->em->getRepository($this->entityName)->findBy(
                array(
                    'idContrato' => $id
                ));

        return $entities;
    }
}

?>